﻿function CheckQuick() {
    var con = $("#content").val();
 
    var re = /waitfor|and|or|exec|execute|select|update|delete|exec|count|’|"|=|;|>|<|%/i;
    if (con == "" || con == null || con == "输入您要咨询的问题") {
        alert("请输入咨询内容！");
        return false;
    } else if (re.test(con)) {
        alert("不能输入特殊字符！");
        return false;
    } else {
        document.getElementById("formquick").submit();
    }
}

function tfocus(rid) {
    $("#" + rid).val("");
}

$("#search").click(function () {
    var rname = $("#rname").val();
    var rtel = $("#rtel").val();
    var rsex = $("#rsex").val();
    var raddress = $("#raddress").val();

    if (rname == "" || raddress == "") {
        alert("请输入变更内容！");
        return false;
    } else {
        document.getElementById("search").disabled = "disabled";
        document.getElementById("formsearch").submit();

        return true;
    }
});